Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 5 - Menu Manager Reference / Menu Manager Functions
Defining Your Own Contextual Menu Plug-In /


PostMenuCleanup

NEW WITH CONTEXTUAL MENUS

Performs any necessary cleanup when the contextual menu is dismissed. If you write a contextual menu plug-in, it must contain a PostMenuCleanup method with the following form:

OSStatus PostMenuCleanup(void);
method result
A result code. See "Result Codes" for a list of possible values.
DISCUSSION
When a contextual menu is dismissed (regardless of whether or not the user made a selection), the Menu Manager calls each plug-in's PostMenuCleanup method. The PostMenuCleanup method should do any necessary cleanup or memory deallocation. For example, a plug-in that allocated a buffer in the ExamineContext method should dispose of that buffer when PostMenuCleanup is called.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998